<?php
namespace Tbf\Bundle\TestBundle\Controller;
use Tbf\Bundle\TbfBundle\Controller\TbfController;
use Tbf\Bundle\AjkApiBundle\Annotation\Api;
class TestMockController extends TbfController{
    /**
     * @Api
     */
    function sessionSetAllApi($input){
        $this->get('session')->clear();
        if (!empty($input['session'])){
            $this->get('session')->replace($input['session']);
        }
        return array(null,null);
    }
    /**
     * @Api
     */
    function sessionSetApi($input){
        $this->get('session')->set($input['name'],$input['value']);
        return array(null,null);
    }
    /**
     * @Api
     */
    function sessionGetAllApi($input){
        return array($this->get('session')->all(),null);
    }
}